package com.example.hystrix.service;

import com.example.common.api.CommonResult;
import com.example.hystrix.dto.UserDto;

import java.util.concurrent.Future;

public interface UserService {
    CommonResult getUser(Long id);

    CommonResult getUserCommand(Long id);

    CommonResult getUserException(Long id);

    CommonResult getUserCache(Long id);

    Future<UserDto> getUserFuture(Long l);
}
